<?php
include_once "../common/template.ease.php";
include_once "../common/util.class.php";
class func{
	private $config;
	private $db;
	private $log;
	private $default_page_size = 40;
	private $guest_uid=999;
	function __construct($config,$db,$log){
		$this->config = $config;
		$this->db = $db;
		$this->log = $log;
	}
	
	public function login_validate(){
		if(!$_SESSION[admin]){
			$this->redirect("login.php");
		}
	}
	
	/** utilities */
	function redirect($url){
		echo "<script language='javascript'>";
		echo "window.location.href='$url';";
		echo "</script>";
		die();
	}
}
?>